package factory;

import operation.AddMilkTeaOperation;
import operation.DeleteMilkTeaOperation;
import operation.ShowMilkTeaOperation;
import operation.UpdateMilkTeaOperation;
import interfac.MilkTeaOperation;

public class MilkTeaOperationFactory {
    public static MilkTeaOperation getOperation(int choice) {
        switch (choice) {
            case 1:
                return new ShowMilkTeaOperation();
            case 2:
                return new AddMilkTeaOperation();
            case 3:
                return new DeleteMilkTeaOperation();
            case 4:
                return new UpdateMilkTeaOperation();
            default:
                return null;
        }
    }
}